package com.lvmama.pangolin.mt.service.impl;

import com.lvmama.pangolin.mybatis.mapper.mt.TicketPdetailMtMapper;
import com.lvmama.pangolin.entity.mt.TicketPdetailMt;
import com.lvmama.pangolin.entity.spider.TicketProduct;
import com.lvmama.pangolin.mt.service.TicketPdetailMtService;
import com.lvmama.pangolin.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;


/**
 * Created by zhoutianqi on 2017/09/06.
 */
@Service
@Transactional
public class TicketPdetailMtServiceImpl extends AbstractService<TicketPdetailMt> implements TicketPdetailMtService {
    @Autowired
    private TicketPdetailMtMapper ticketPdetailMtMapper;

	@Override
	public int insertSelective(TicketProduct record) {
		// TODO Auto-generated method stub
		return ticketPdetailMtMapper.insertSelective(record);
	}

	@Override
	public int deleteBytaskAndProd(TicketProduct record) {
		// TODO Auto-generated method stub
		return ticketPdetailMtMapper.deleteBytaskAndProd(record);
	}

	@Override
	public List<TicketProduct> queryCommodityListByTaskID(Map<String, Object> map) {
		return ticketPdetailMtMapper.queryCommodityListByTaskID(map);
	}

}
